import Layout from '@/layout'

export default [
  {
    path: '/generate',
    component: Layout,
    redirect: '/generate/index',
    name: 'generate',
    meta: { title: '生成填报方案', icon: 'example', roles: ['专家-生成填报方案'] },
    children: [
      {
        path: 'index',
        name: 'generate-index',
        component: () => import('@/views/expert/generate/index'),
        meta: { title: '生成填报方案', icon: 'form' }
      },
      {
        path: 'result',
        name: 'generate-result',
        hidden: true,
        component: () => import('@/views/expert/generate/components/Solution'),
        meta: { title: '生成填报方案结果', icon: 'form' }
      },
      {
        path: 'log',
        name: 'generate-log',
        component: () => import('@/views/expert/query-log/index'),
        meta: { title: '生成记录', icon: 'form' }
      },
      {
        path: 'log/:id',
        name: 'generate-log-detail',
        hidden: true,
        component: () => import('@/views/expert/query-log/view'),
        meta: { title: '生成记录详情', icon: 'form' }
      }
      // ,
      // {
      //   path: '403',
      //   name: 'generate-403',
      //   component: () => import('@/views/403'),
      //   meta: { title: '403', icon: 'form' }
      // }
    ]
  }
]
